package com.hk.player;

import android.view.View;

import com.hk.player.core.IHKPlayerView;
import com.hk.player.core.IPlayerControl;

import androidx.appcompat.app.AppCompatActivity;

/**
 * @author: zhoug
 * @since: 2025-08-08
 */
public class PlayerControlHelper {
    private IPlayerControl mControl;
    private IHKPlayerView mPlayerView;
    private AppCompatActivity mActivity;

    public PlayerControlHelper(AppCompatActivity activity) {
        this.mActivity = activity;
    }

    public void setControl(IPlayerControl control) {
        this.mControl = control;
        if (mControl != null) {
            bindControlListener();
        }
    }

    public void setPlayerView(IHKPlayerView playerView) {
        this.mPlayerView = playerView;
    }

    private void bindControlListener() {
        if (mControl == null) return;
        mControl.setFullScreenBtnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                
            }
        });
    }


}
